package com.kzy.demoadmin.web.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * 借阅表
 */
@Schema(description = "借阅记录实体类")
@Data
public class Reserve {
    // 主键ID
    @Id
    private Integer id;
    // 书籍ID
    private Integer bookId;
    //书籍名称
    @Transient
    private String bookName;
    // 用户ID
    private Integer userId;
    // 用户名称
    @Transient
    private String userName;
    // 借阅时间
    private String time;
    //状态
    private Integer status; //0未归还 1已归还
    //分页参数
    @Transient
    private Integer pageNo;
    @Transient
    private Integer pageSize;
}
